<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"> 

<h:head>
<title>Universidade Brasilia FGA</title>
</h:head>
 
    
    <p:panel id="panel1">    
<center>
<p:graphicImage value="imagens/gama_header1.png"/>

<h1>#{msgs.campoCabecalho}</h1>  
<h:body>
    
<f:view locale="#{localeController.currentLocale}" />
    
<h:form>  
     	
 <p:dataTable id="tbl" var="car" paginator="true" rows="10">
	<p:column>
		<f:facet name="header">
			<h:outputText value="#{msgs.campoNome}" />
		</f:facet>
		<h:outputText value="#{car.model}" />
	</p:column>

	<p:column>
		<f:facet name="header">
			<h:outputText value="#{msgs.campoMatricula}" />
		</f:facet>
		<h:outputText value="#{car.year}"/>
	</p:column>

	<p:column>
		<f:facet name="header">
			<h:outputText value="#{msgs.campoSexo}" />
		</f:facet>
		<h:outputText value="#{car.manufacturer}" />
	</p:column>

	<p:column>
		<f:facet name="header">
			<h:outputText value="#{msgs.campoTelefonemovel}" />
		</f:facet>
		<h:outputText value="#{car.color}" />
	</p:column>
</p:dataTable>
    
	<p:panel header="#{msgs.campoExportarDados}">
		<h:commandLink>
			<p:graphicImage value="/imagens/excel.png" />
			<p:dataExporter type="xls" target="tbl" fileName="cars" />
		</h:commandLink>

		<h:commandLink>
			<p:graphicImage value="/imagens/pdf.png" />
			<p:dataExporter type="pdf" target="tbl" fileName="cars"/>
		</h:commandLink>
		
		<h:commandLink>
			<p:graphicImage value="/imagens/csv.png" />
			<p:dataExporter type="csv" target="tbl" fileName="cars" />
		</h:commandLink>
		
		<h:commandLink>
			<p:graphicImage value="/imagens/xml.png" />
			<p:dataExporter type="xml" target="tbl" fileName="cars" />
		</h:commandLink>
       	</p:panel>
    
    <p:panel>
           <p:commandButton value="#{msgs.campoImprimir}" ajax="false" /> 
           <p:commandButton value="#{msgs.campoEditar}" ajax="false" />               
    </p:panel>
        
<hr size="8" width="50%"></hr>
<h6>© 2011 | Área Especial 2 Lote 14 Setor Central Gama-DF Cep: 72405-610 Telefone Geral: (55 61) 3107 8219 | (Fax) 3107 8201 UnB Gama | Desenvolvimento UnB</h6>


</h:form>
</h:body>
</center>
</p:panel>
</html>